<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
<html>
<head>
<!-- Copyright 1997 The Open Group, All Rights Reserved -->
<title>telldir</title>
</head><body bgcolor=white>
<center>
<font size=2>
The Single UNIX &reg; Specification, Version 2<br>
Copyright &copy; 1997 The Open Group

</font></center><hr size=2 noshade>
<h4><a name = "tag_000_009_519">&nbsp;</a>NAME</h4><blockquote>
telldir - current location of a named directory stream
</blockquote><h4><a name = "tag_000_009_520">&nbsp;</a>SYNOPSIS</h4><blockquote>
<pre><code>

#include &lt;<a href="dirent.h.html">dirent.h</a>&gt;

long int telldir(DIR *<i>dirp</i>);
</code>
</pre>
</blockquote><h4><a name = "tag_000_009_521">&nbsp;</a>DESCRIPTION</h4><blockquote>
The
<i>telldir()</i>
function obtains the current location associated with the directory
stream specified by <i>dirp</i>.
<p>
If the most recent operation on the directory stream was a
<i><a href="seekdir.html">seekdir()</a></i>,
the directory position returned from the
<i>telldir()</i>
is the same as that supplied as a
<i>loc</i>
argument for
<i><a href="seekdir.html">seekdir()</a></i>.
</blockquote><h4><a name = "tag_000_009_522">&nbsp;</a>RETURN VALUE</h4><blockquote>
Upon successful completion,
<i>telldir()</i>
returns the current location of the specified directory stream.
</blockquote><h4><a name = "tag_000_009_523">&nbsp;</a>ERRORS</h4><blockquote>
No errors are defined.
</blockquote><h4><a name = "tag_000_009_524">&nbsp;</a>EXAMPLES</h4><blockquote>
None.
</blockquote><h4><a name = "tag_000_009_525">&nbsp;</a>APPLICATION USAGE</h4><blockquote>
None.
</blockquote><h4><a name = "tag_000_009_526">&nbsp;</a>FUTURE DIRECTIONS</h4><blockquote>
None.
</blockquote><h4><a name = "tag_000_009_527">&nbsp;</a>SEE ALSO</h4><blockquote>
<i><a href="opendir.html">opendir()</a></i>,
<i><a href="readdir.html">readdir()</a></i>,
<i><a href="seekdir.html">seekdir()</a></i>,
<i><a href="dirent.h.html">&lt;dirent.h&gt;</a></i>.
</blockquote><hr size=2 noshade>
<center><font size=2>
UNIX &reg; is a registered Trademark of The Open Group.<br>
Copyright &copy; 1997 The Open Group
<br> [ <a href="../index.html">Main Index</a> | <a href="../xshix.html">XSH</a> | <a href="../xcuix.html">XCU</a> | <a href="../xbdix.html">XBD</a> | <a href="../cursesix.html">XCURSES</a> | <a href="../xnsix.html">XNS</a> ]

</font></center><hr size=2 noshade>
</body></html>
